from django import forms
from TestingPlatform import models


class UserModelForm(forms.ModelForm):
    class Meta:
        model = models.JD_Account
        fields = ["account", "password", 'cookie']

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

        for name, field in self.fields.items():
            field.widget.attrs = {'class': "form-control"}
